import Vue from "vue";
import VueRouter from "vue-router";
import Login from "../views/Login.vue";
import Home from "../views/Home/Home.vue";
import Welcome from "../views/Home/Welcome.vue";
import CompanyMange from "../views/Home/CompanyMange.vue";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: "/login",
      component: Login,
    },
    {
      path: "/home",
      component: Home,
      children: [
        {
          path: "welcome",
          component: Welcome,
        },
        {
          path: "wel",
          component: Welcome,
        },
        {
          path: "company",
          component: CompanyMange,
        },
      ],
    },
  ],
  mode: "hash",
});

export default router;
